<?php
$clientsbyid = array();
foreach($clients as $client){
	$clientsbyid[$client['Client']['id']] = $client['Client']['title'];
}
unset($clients);?>

<h2>new task for: <?php echo $clientsbyid[$client_id]; ?></h2>

<ul class="submenu">
<li><?php echo $this->Html->link('View',array('controller' => 'tasks', 'action' => 'index', $client_id)); ?></li>
<li><?php echo $this->Html->link('New',array('controller' => 'tasks', 'action' => 'add', $client_id)); ?></li>
</ul>

<?php
echo $this->Form->create('Task');
echo $this->Form->input('title');

echo $this->Form->end('Save Task');
?>